package course.service;

import course.pojo.entity.College;
import course.pojo.vo.Page;

import java.util.List;

/**
 * @author HLF
 * @date 2022/6/30 20:23
 */
public interface CollegeService {
    College getById(Integer cid);

    /**
     * @return 返回自增主键
     */
    int addCollege(College college);

    int updateById(College college);

    int deleteById(Integer cid);

    List<College> getList();

    int deleteSelect(List<Integer> ids);

    long count();

    Page<College> page(Integer pageNo);

    Page<College> query(String cname,Integer pageNo);

    College getByCname(String cname);

    List<College> selectBathByIds(List<Integer> ids);
}
